package com.laiketui.common.utils;

import java.util.Arrays;
import java.util.List;

public class Environment {
    //是否是本地环境
    public static boolean isLocalEnvironment() {
        String machineName = System.getProperty("user.name");
        List<String> localMachineNames = Arrays.asList("19078");// 将本地环境常用的机器名添加到此列表中
        return localMachineNames.contains(machineName);
    }

    //打印
    public static void sp(String var) {
        System.out.println(var);
    }
}
